<template>
	<view>
		<view class="content">
			<view class="" style="width: 100%;">
				<textarea class="text-area" v-model="form.evaluate" maxlength="-1" placeholder="请输入您的自我评价..." placeholder-style="color: #505559; font-size: 28rpx;"/>
			</view>
		</view>
		<view class="btn">
			<view class="dl" @click="del" v-if="btn">
				<view class="dlll">
					删除
				</view>
			</view>
			<view class="dl" @click="baocun" v-if="btn==false">
				<view class="dll">
					保存
				</view>
			</view>
			<view class="dl" @click="xgg" v-if="btn">
				<view class="dll">
					修改
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				btn:false,
				form:{
					evaluate:''
				}
			}
		},
		methods:{
			async baocun() {
				const res = await this.post('/Index/User/save_user_resume_evaluate', this.form);
				if(res.code==200){
					uni.showToast({
						title:'添加成功',
						duration:1000,
						icon:'none',
						success() {
							uni.navigateBack({
								
							})
						}
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #EDF1F2;
	}
	.text-area{
		width: 100%;
		height: 422rpx;
		color: #505559;
		padding: 36rpx;
		font-size: 28rpx;
		margin-top: 38rpx;
		background: #FFFFFF;
	}
	.btn{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-around;
		position: fixed;
		bottom: 10rpx;
		// left: 50%;
	}
	.dl {
		// width: 40%;
		width: 100%;
		padding: 30rpx;
		// transform: translateX(-50%);
	
		.dll {
			width: 100%;
			height: 90rpx;
			color: #FFFFFF;
			line-height: 90rpx;
			text-align: center;
			border-radius: 15rpx;
			background-color: #3291F8;
			border: 1rpx solid #3291F8;
		}
		.dlll{
			width: 100%;
			height: 90rpx;
			line-height: 90rpx;
			text-align: center;
			border-radius: 15rpx;
			color: #ff0000;
			background-color: #FFFFFF;
			border: 1rpx solid #ff0000;
		}
	}
</style>
